package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;

/**
 * 订单模块
 * @author zhangli
 * @date 2016年4月6日 下午2:05:27
 */
@TableMapperAnnotation(tableName = "t_order", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id")
public class Order extends Domain{
	private static final long serialVersionUID = 4178996028162534134L;
	
	/**
	 * 订单id
	 */
	@FieldMapperAnnotation 
	String id;
	/**
	 * 购买用户id
	 */
	@FieldMapperAnnotation 
	Integer userId;
	/**
	 * 是否催单 1否 2是
	 */
	@FieldMapperAnnotation 
	Integer isRemind;
	/**
	 * 是否催单申请退款 1未申请  2已申请
	 */
	@FieldMapperAnnotation 
	Integer isBack;
	/**
	 * 申请退款原因id
	 */
	@FieldMapperAnnotation 
	Integer causeId;
	/**
	 * 购买用户所属物业
	 */
	@FieldMapperAnnotation 
	Integer estateId;
	/**
	 * 订单名
	 */
	@FieldMapperAnnotation 
	String name;
	/**
	 *配送时间
	 */
	@FieldMapperAnnotation 
	String sendTime;
	/**
	 * 用户信息 姓名 电话 地址
	 */
	@FieldMapperAnnotation 
	String user;
	/**
	 * 商品信息 名称 图片 价格 数量
	 */
	@FieldMapperAnnotation 
	String goods;
	/**
	 * 优惠券信息 id 券额
	 */
	@FieldMapperAnnotation 
	String coupon;
	/**
	 * 总积分
	 */
	@FieldMapperAnnotation 
	Integer point;
	/**
	 * 订单总价格
	 */
	@FieldMapperAnnotation 
	Double price;
	/**
	 * 配送附加费用
	 */
	@FieldMapperAnnotation 
	Double attach;
	/**
	 * 支付状态 1 未支付
	 */
	@FieldMapperAnnotation 
	Integer status;
	/**
	 * 支付方式 默认1支付宝
	 */
	@FieldMapperAnnotation 
	Integer payChannel;
	/**
	 * 创建时间
	 */
	@FieldMapperAnnotation 
	Long createTime;
	/**
	 * 修改时间
	 */
	@FieldMapperAnnotation 
	Long modifyTime;
	/**
	 * 默认1正常 2禁用
	 */
	@FieldMapperAnnotation 
	Integer state;
	/**
	 * 留言备注
	 */
	@FieldMapperAnnotation 
	String remark;
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the user
	 */
	public String getUser() {
		return user;
	}
	/**
	 * @return the goods
	 */
	public String getGoods() {
		return goods;
	}
	/**
	 * @return the coupon
	 */
	public String getCoupon() {
		return coupon;
	}
	/**
	 * @return the point
	 */
	public Integer getPoint() {
		return point;
	}
	/**
	 * @return the price
	 */
	public Double getPrice() {
		return price;
	}
	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * @return the payChannel
	 */
	public Integer getPayChannel() {
		return payChannel;
	}
	/**
	 * @return the createTime
	 */
	public Long getCreateTime() {
		return createTime;
	}
	/**
	 * @return the modifyTime
	 */
	public Long getModifyTime() {
		return modifyTime;
	}
	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}
	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(String user) {
		this.user = user;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods(String goods) {
		this.goods = goods;
	}
	/**
	 * @param coupon the coupon to set
	 */
	public void setCoupon(String coupon) {
		this.coupon = coupon;
	}
	/**
	 * @param point the point to set
	 */
	public void setPoint(Integer point) {
		this.point = point;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * @param payChannel the payChannel to set
	 */
	public void setPayChannel(Integer payChannel) {
		this.payChannel = payChannel;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	/**
	 * @param modifyTime the modifyTime to set
	 */
	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}
	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Double getAttach() {
		return attach;
	}
	public void setAttach(Double attach) {
		this.attach = attach;
	}
	public String getSendTime() {
		return sendTime;
	}
	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}
	public Integer getEstateId() {
		return estateId;
	}
	public void setEstateId(Integer estateId) {
		this.estateId = estateId;
	}
	public Integer getIsRemind() {
		return isRemind;
	}
	public void setIsRemind(Integer isRemind) {
		this.isRemind = isRemind;
	}
	public Integer getIsBack() {
		return isBack;
	}
	public void setIsBack(Integer isBack) {
		this.isBack = isBack;
	}
	public Integer getCauseId() {
		return causeId;
	}
	public void setCauseId(Integer causeId) {
		this.causeId = causeId;
	}

}
